version: '2'
services:
  redis-master:
    image: k8s.gcr.io/redis:e2e
    ports:
      - '6379'
    labels:
      caas.service.type: LoadBalancer
  redis-slave:
    image: gcr.io/google_samples/gb-redisslave:v3
    ports:
      - '6379'
    environment:
      - GET_HOSTS_FROM=dns
  frontend:
    image: gcr.io/google-samples/gb-frontend:v4
    ports:
      - '80'
    environment:
      - GET_HOSTS_FROM=dns
    labels:
      caas.service.type: LoadBalancer